<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blog_hexo/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blog_hexo/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blog_hexo/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/blog_hexo/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/blog_hexo/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog_hexo/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/blog_hexo/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="微信小程序,Springboot,阿里云," />










<meta name="description" content="记一次微信小程序开发 小程序一直很火啊，对于一个学java的也来了解一下，刚刚把整个流程走了一遍，踩坑无数啊，对于我这个健忘者来说，赶紧记录一下。  一、学习慕课网小程序视频 慕课网springboot+Mybatis搭建小程序开发链接，免费讲的很不错。 然后就尽量自己动手码一遍代码，练习一下。源码链接  二、部署运行环境 阿里云学生优惠服务器（9.5/月），一段时间不用好像页面改版了，改为轻量应">
<meta name="keywords" content="微信小程序,Springboot,阿里云">
<meta property="og:type" content="article">
<meta property="og:title" content="微信小程序">
<meta property="og:url" content="http://yoursite.com/blog_hexo/2018/05/20/记一次微信小程序开发/index.html">
<meta property="og:site_name" content="健忘者">
<meta property="og:description" content="记一次微信小程序开发 小程序一直很火啊，对于一个学java的也来了解一下，刚刚把整个流程走了一遍，踩坑无数啊，对于我这个健忘者来说，赶紧记录一下。  一、学习慕课网小程序视频 慕课网springboot+Mybatis搭建小程序开发链接，免费讲的很不错。 然后就尽量自己动手码一遍代码，练习一下。源码链接  二、部署运行环境 阿里云学生优惠服务器（9.5/月），一段时间不用好像页面改版了，改为轻量应">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2018-05-23T06:32:59.083Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="微信小程序">
<meta name="twitter:description" content="记一次微信小程序开发 小程序一直很火啊，对于一个学java的也来了解一下，刚刚把整个流程走了一遍，踩坑无数啊，对于我这个健忘者来说，赶紧记录一下。  一、学习慕课网小程序视频 慕课网springboot+Mybatis搭建小程序开发链接，免费讲的很不错。 然后就尽量自己动手码一遍代码，练习一下。源码链接  二、部署运行环境 阿里云学生优惠服务器（9.5/月），一段时间不用好像页面改版了，改为轻量应">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog_hexo/',
    scheme: 'Muse',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/blog_hexo/2018/05/20/记一次微信小程序开发/"/>





  <title>微信小程序 | 健忘者</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog_hexo/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">健忘者</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog_hexo/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blog_hexo/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blog_hexo/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/blog_hexo/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog_hexo/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/blog_hexo/blog_hexo/2018/05/20/记一次微信小程序开发/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Dinian">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog_hexo/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="健忘者">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">微信小程序</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-05-20T23:06:23+08:00">
                2018-05-20
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog_hexo/categories/微信小程序/" itemprop="url" rel="index">
                    <span itemprop="name">微信小程序</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blog_hexo/2018/05/20/记一次微信小程序开发/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2018/05/20/记一次微信小程序开发/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="记一次微信小程序开发"><a href="#记一次微信小程序开发" class="headerlink" title="记一次微信小程序开发"></a>记一次微信小程序开发</h3><blockquote>
<p>小程序一直很火啊，对于一个学java的也来了解一下，刚刚把整个流程走了一遍，踩坑无数啊，对于我这个健忘者来说，赶紧记录一下。</p>
</blockquote>
<h4 id="一、学习慕课网小程序视频"><a href="#一、学习慕课网小程序视频" class="headerlink" title="一、学习慕课网小程序视频"></a>一、学习慕课网小程序视频</h4><ul>
<li>慕课网springboot+Mybatis搭建小程序开发<a href="https://www.imooc.com/learn/945" target="_blank" rel="noopener">链接</a>，免费讲的很不错。</li>
<li>然后就尽量自己动手码一遍代码，练习一下。源码<a href="https://gitee.com/codeforjava/weixinbackground" target="_blank" rel="noopener">链接</a>  <h4 id="二、部署运行环境"><a href="#二、部署运行环境" class="headerlink" title="二、部署运行环境"></a>二、部署运行环境</h4></li>
<li>阿里云学生优惠服务器（9.5/月），一段时间不用好像页面改版了，改为<em>轻量应用服务器</em>。<ul>
<li>买云服务器时安装CentOS镜像，控制台-&gt;服务器管理-&gt;防火墙：添加Tomcat-TCP-8080和Mysql-3306端口。重置设置远程连接密码或密钥。</li>
<li>在CentOS系统中安装JDK+Mysql+Tomcat（以前云市场是有免费的集成镜像的，现在找不到了，很坑啊，花费了好长时间学习安装，不过也很有收获）</li>
<li>下载JDK（linux64位）、Mysql、Tomcat8.5  <h4 id="三、小程序上线。。。"><a href="#三、小程序上线。。。" class="headerlink" title="三、小程序上线。。。"></a>三、小程序上线。。。</h4></li>
</ul>
</li>
</ul>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/blog_hexo/tags/微信小程序/" rel="tag"># 微信小程序</a>
          
            <a href="/blog_hexo/tags/Springboot/" rel="tag"># Springboot</a>
          
            <a href="/blog_hexo/tags/阿里云/" rel="tag"># 阿里云</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blog_hexo/2018/05/20/从搭建到管理一站解决”/" rel="next" title="hexo+码云Pages搭建免费博客">
                <i class="fa fa-chevron-left"></i> hexo+码云Pages搭建免费博客
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/blog_hexo/2018/05/25/23种设计模式/" rel="prev" title="设计模式之禅">
                设计模式之禅 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div class="ds-thread" data-thread-key="2018/05/20/记一次微信小程序开发/"
           data-title="微信小程序" data-url="http://yoursite.com/blog_hexo/2018/05/20/记一次微信小程序开发/">
      </div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">Dinian</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog_hexo/archives/">
              
                  <span class="site-state-item-count">4</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/blog_hexo/categories/index.html">
                  <span class="site-state-item-count">4</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/blog_hexo/tags/index.html">
                  <span class="site-state-item-count">9</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://gitee.com/codeforjava" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-码云"></i>GitHub</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#记一次微信小程序开发"><span class="nav-number">1.</span> <span class="nav-text">记一次微信小程序开发</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#一、学习慕课网小程序视频"><span class="nav-number">1.1.</span> <span class="nav-text">一、学习慕课网小程序视频</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#二、部署运行环境"><span class="nav-number">1.2.</span> <span class="nav-text">二、部署运行环境</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#三、小程序上线。。。"><span class="nav-number">1.3.</span> <span class="nav-text">三、小程序上线。。。</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Dinian</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Muse</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/blog_hexo/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blog_hexo/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blog_hexo/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blog_hexo/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog_hexo/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog_hexo/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/blog_hexo/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog_hexo/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/blog_hexo/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/blog_hexo/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/blog_hexo/js/src/bootstrap.js?v=5.1.4"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"your-duoshuo-shortname"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
    
    <script src="/blog_hexo/lib/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
    <script src="/blog_hexo/js/src/hook-duoshuo.js"></script>
  


















  





  

  

  

  
  

  

  

  

</body>
</html>
